package com.zyong.design.pattern.responsibility.case3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-13 14:09
 */
public class Client {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext("com.zyong.design.pattern.responsibility.case3");

        HandleChainManager handleChainManager = applicationContext.getBean(HandleChainManager.class);
        String result = handleChainManager.executeHandle("REQUEST", "hello");

        System.out.println("result = " + result);
    }
}
